package com.shuma.userservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuma.userservice.domain.dto.LoginDTO;
import com.shuma.userservice.domain.dto.RegisterDTO;
import com.shuma.userservice.domain.dto.ResetPasswordDTO;
import com.shuma.userservice.domain.dto.UpdateUserDTO;
import com.shuma.userservice.domain.pojo.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shuma.userservice.domain.vo.UserLoginVO;
import com.shuma.userservice.query.PageQuery;

/**
* @author 86189
* @description 针对表【users】的数据库操作Service
* @createDate 2025-06-13 15:24:18
*/
public interface UsersService extends IService<Users> {

    void register(RegisterDTO dto);

    UserLoginVO login(LoginDTO dto);

    Page<Users> getUsersByPage(PageQuery query);

    Users getUser(Long userId);
    
    Users resetPassword(ResetPasswordDTO dto);

    Users updateUser(Long userId, UpdateUserDTO dto);
}
